$('#login').click(function() {
    let username = $('#username').val();
    let password = $('#password').val();
    // console.log(username);
    // console.log(password);
    $.ajax({
        url: '/users/login', //一级接口，二级接口
        type: 'post',
        data: {
            username,
            password
        },
        success(res) {
            alert(res.message);
        }
    })
})